package com.main;

import java.awt.*;
import java.awt.image.BufferedImage;

public class Cloud {
//    云彩图片
    private BufferedImage img;
//    云彩速度
    private int speed;
//    云彩位置
    private int x,y;

    public Cloud() {
    }

    public Cloud(BufferedImage img, int speed, int x, int y) {
        this.img = img;
        this.speed = speed;
        this.x = x;
        this.y = y;
    }

    public void draw(Graphics g){
        g.drawImage(img,x,y,null);
    }
}
